CMAKE_MINIMUM_REQUIRED(VERSION 3.8)

set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)

AUX_SOURCE_DIRECTORY(. CURRENT_DIR_SRCS)
ADD_LIBRARY(module_locker ${CURRENT_DIR_SRCS})
TARGET_LINK_LIBRARIES(module_locker PUBLIC Threads::Threads)